home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / Source / GNU / uucp / Uucp.framework / unix.subproj / exists.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-09  |  232 b   |  17 lines

  1. /* exists.c
  2.    Check whether a file exists.  */
  3.  
  4. #include "uucp.h"
  5.  
  6. #include "sysdep.h"
  7. #include "system.h"
  8.  
  9. boolean
  10. fsysdep_file_exists (zfile)
  11.      const char *zfile;
  12. {
  13.   struct stat s;
  14.  
  15.   return stat ((char *) zfile, &s) == 0;
  16. }
  17.